package com.iflytek.jcy.supervise.clue.common.enums;

/**
 * 
 * <br>
 * 标题:权重枚举类 <br>
 * 描述: <br>
 * 公司: www.iflytek.com<br>
 * @autho dgyu
 * @time 2022年10月25日 下午5:08:22
 */
public enum WeightEnum {

    DI(1,"低"),
    ZHONG(2,"中"),
	GAO(3,"高");

    private Integer code;
    private String desc;

    WeightEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }


    public String getDesc() {
        return desc;
    }
    
    public static String getValue(Integer code) {
    	for(WeightEnum evaluationResultEnum: WeightEnum.values()) {
    		if(evaluationResultEnum.getCode().equals(code)) {
    			return evaluationResultEnum.getDesc();
    		}
    	}
    	return "未研判";
    }
}
